package com.bzkj.basicinfo.mapper.exception;

import com.bzkj.basicinfo.domain.exception.WmsExceptionRecordEntity;
import java.util.List;

/**
 * WMS异常记录Mapper接口
 *
 *@author lixinyu
 * @date 2025-10-23
 */
public interface WmsExceptionRecordMapper {

    /**
     * 查询异常记录列表
     */
    List<WmsExceptionRecordEntity> selectExceptionRecordList(WmsExceptionRecordEntity entity);

    /**
     * 根据ID查询异常记录
     */
    WmsExceptionRecordEntity selectExceptionRecordById(Long id);

    /**
     * 新增异常记录
     */
    int insertExceptionRecord(WmsExceptionRecordEntity entity);

    /**
     * 更新异常记录
     */
    int updateExceptionRecord(WmsExceptionRecordEntity entity);

    /**
     * 根据ID删除异常记录
     */
    int deleteExceptionRecordById(Long id);

    /**
     * 批量删除异常记录
     */
    int deleteExceptionRecordByIds(Long[] ids);

    /**
     * 更新异常处理状态
     */
    int updateExceptionStatus(Long id, String handleStatus, String handler);

    /**
     * 根据关联单据查询异常记录
     */
    List<WmsExceptionRecordEntity> selectByRelatedOrder(String relatedOrderType, String relatedOrderNo);
}